﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学校信息管理系统</title>
    <link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
    <link href="~/font/bootstrap-icons.css" rel="stylesheet" />
    <link rel="stylesheet" href="~/css/site.css"/>
    <link rel="stylesheet" href="~/css/mybgcolor.css">
    <link rel="stylesheet" href="~/css/mycolor.css">
    <link href="~/css/customstyle.css" rel="stylesheet" />
</head>
<body>
    <div class="container-fluid px-0 ">
        <div class="container-fluid p-3  my-bg-marchcolor-7 text-white text-center">
            <h4>学校信息管理系统</h4>
        </div>
    </div>

    <div class="container-fluid">
        <div class="row">
            <!-- 左侧 -->
            <div class="col-sm-2 my-bg-marchcolor-7 max-vh-100 px-0">
                <div>
                    <div class="card">
                        <div class="card-header my-bg-marchcolor-8">
                            <a class="btn p-0 text-white w-100 text-start" aria-expanded="true" data-bs-toggle="collapse" href="#collapse1">
                                <i class="bi bi-grid-fill me-1 my-marchcolor-14"></i>
                                学生信息管理
                            </a>
                        </div>
                        <div id="collapse1" class="collapse fade">
                            <div class="list-group">
                                <a href="/Student/StuList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    学生列表
                                </a>

                                <a href="/ClassEntity/ClassList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    班级列表
                                </a>

                                
                                <a href="/Grade/GradeList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    年级列表
                                </a>
                                <a href="/Department/DepartmentList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    专业列表
                                </a>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-header my-bg-marchcolor-8">
                            <a class="btn p-0 text-white w-100 text-start" aria-expanded="false" data-bs-toggle="collapse" href="#collapse2">
                                <i class="bi bi-grid-fill me-1 my-marchcolor-14"></i>
                                教务信息管理
                            </a>
                        </div>
                        <div id="collapse2" class="collapse fade">
                            <div class="list-group">
                                <a href="/Score/ScoreList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    成绩列表
                                </a>
                                <a href="/Score/ScoreManager" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    成绩管理
                                </a>
                                <a href="/Exam/ExamList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    考试列表
                                </a>
                                <a href="/Subject/SubjectList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    科目列表
                                </a>
                                <a href="/Course/CourseList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    课程列表
                                </a>
                                <a href="/Subject/SubjectList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    教材列表
                                </a>
                                <a href="/Subject/SubjectList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    教材库存信息
                                </a>
                            </div>
                        </div>
                    </div>

                   

                    <div class="card">
                        <div class="card-header my-bg-marchcolor-8">
                            <a class="btn p-0 text-white w-100 text-start" aria-expanded="false" data-bs-toggle="collapse" href="#collapse7">
                                <i class="bi bi-grid-fill me-1 my-marchcolor-14"></i>
                                奖惩信息管理
                            </a>
                        </div>
                        <div id="collapse7" class="collapse fade">
                            <div class="list-group">
                                <a href="/Reward/RewardList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    奖惩列表
                                </a>
                                <a href="/Reward/RewardManager" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    奖惩管理
                                </a>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-header my-bg-marchcolor-8">
                            <a class="btn p-0 text-white w-100 text-start" aria-expanded="false" data-bs-toggle="collapse" href="#collapse8">
                                <i class="bi bi-grid-fill me-1 my-marchcolor-14"></i>
                                教室信息管理
                            </a>
                        </div>
                        <div id="collapse8" class="collapse fade">
                            <div class="list-group">
                                <a href="/ClassRoom/ClassRoomList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    教室列表
                                </a>
                                <a href="/BedRoom/BedRoomList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    寝室列表
                                </a>
                                <a href="/OfficeRoom/OfficeRoomList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    办公室列表
                                </a>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-header my-bg-marchcolor-8">
                            <a class="btn p-0 text-white w-100 text-start" aria-expanded="false" data-bs-toggle="collapse" href="#collapse10">
                                <i class="bi bi-grid-fill me-1 my-marchcolor-14"></i>
                                用户信息管理
                            </a>
                        </div>
                        <div id="collapse10" class="collapse fade">
                            <div class="list-group">
                                <a href="/User/UserList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    用户列表
                                </a>
                                <a href="/User/UserManager" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    权限管理
                                </a>
                                <a id="rolelist" href="/Role/RoleList" class="list-group-item list-group-item-action my-bg-marchcolor-13 text-white">
                                    <i class="bi bi-chevron-right ps-3 me-1 my-marchcolor-6"></i>
                                    角色列表
                                </a>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
            <!-- 右侧 -->
            <div class="col-sm-10 p-0 vh-100">
                @RenderBody()
            </div>
        </div>
    </div>
    

    <script src="~/lib/jquery/dist/jquery.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.js"></script>

    <script>
        $('.list-group-item').each(function(){
            $(this).click(function(){
                let href = $(this).attr('href')
                sessionStorage.setItem('href',href)
            })
        })
        

        let storage=sessionStorage.getItem('href')
        $('.list-group-item').each(function () {
            if($(this).attr('href')==storage)
                $(this).parent().parent().addClass('show')
        })
        
    </script>
    @await RenderSectionAsync("Scripts", required: false)
</body>
</html>